package fm.kgis.fm.service
{
	import com.kgis.fm.common.proxy.DefaultServiceProxy;
	import com.kgis.fm.flex.model.business.Entity;
	
	public class FmEntityManagementService extends DefaultServiceProxy
	{
		private static const SERVICE_NAME:String="fmEntityManagementService";
		
		public function FmEntityManagementService()
		{
			super(SERVICE_NAME);
		}
		
		public function create(entity:Entity,callback:Function=null, context:Object=null):void
		{
			callService("create", [entity], callback, context);
		}
		
		public function createGeometryEntity(entity:Entity,callback:Function=null, context:Object=null):void
		{
			callService("createGeometryEntity", [entity], callback, context);
		}
		
		public function update(entity:Entity,callback:Function=null, context:Object=null):void
		{
			callService("update", [entity], callback, context);
		}
		
		/*public function sequence(sequenceName:String,callback:Function=null, context:Object=null):Number
		{
			callService("sequence", [sequenceName], callback, context);
		}*/
	}
}